package com.example.newspapersmanageos.Mapper;

import com.example.newspapersmanageos.Entity.Newspaper;
import com.example.newspapersmanageos.Entity.ShowInfo;
import com.example.newspapersmanageos.Entity.Title;
import com.example.newspapersmanageos.Entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NewspaperMapper {
    //添加报刊信息
    int addNewspaperInfo(Newspaper newspaper);
    //全部报刊数量
    int countByPage();
    //获取全部报刊
    List<Newspaper> getAllNewspaper(int pageNum, int pageSize);
    //根据图片名称查询报刊id
    int getIdByImgName(String pictureName);
    //添加标题信息
    int addTitleInfo(Title title);
    //根据报刊id获取标题信息
    List<Title> getTitleById(int newspaperId);

}
